package com.qeegoo.b2bautozityp.moudle.user.view;

import com.qeegoo.b2bautozityp.R;
import com.qeegoo.b2bautozityp.databinding.ActivityAccoountSecurityBinding;
import com.qeegoo.b2bautozityp.injector.component.DaggerAccountSecurityComponent;
import com.qeegoo.b2bautozityp.moudle.base.AppBar;
import com.qeegoo.b2bautozityp.moudle.base.BaseActivity;
import com.qeegoo.b2bautozityp.moudle.user.viewmodel.AccountSecurityViewModel;

import javax.inject.Inject;

/**
 * Created by lining on 2017/9/27.
 */

public class AccountSecurityActivity extends BaseActivity<ActivityAccoountSecurityBinding> {

    @Inject
    AccountSecurityViewModel mViewModel;
    @Override
    protected int attachLayoutRes() {
        return R.layout.activity_accoount_security;
    }

    @Override
    protected void initInjector() {
        DaggerAccountSecurityComponent.builder().appComponent(getAppComponent()).build().inject(this);
    }

    @Override
    protected void initViews() {
        initToolBar(mBinding.layoutToolbar, new AppBar("账户与安全", true));
        mBinding.setViewModel(mViewModel);
        mViewModel.loadHttp();
    }
}
